package com.csxh.service;

import static org.junit.Assert.fail;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import com.csxh.bean.Menu;



public class MenuServiceTest {

	private MenuService service;

	@Before
	public void setUp() throws Exception {
		service = new MenuService();
	}

	@Test
	public void testFindOneSerializable() {
		Menu menu= this.service.findOne(1);
		System.out.println(menu);
		Assert.assertNotNull(menu);
	
		
	}

	@Test
	public void testFindOneStringObjectArray() {
		Menu menu= this.service.findOne("`name`=?","c");
		System.out.println(menu);
		Assert.assertNotNull(menu);
	
	}

	@Test
	public void testFindAll() {
		
		
	}

	@Test
	public void testSava() {
		
	}

	@Test
	public void testDelete() {
		
	}

	@Test
	public void testUpdata() {
		fail("Not yet implemented");
	}

}
